package com.group.www.pojo;


import java.io.Serializable;
import java.util.Date;

public class GoodsInfo implements Serializable {

    private Integer goodsid;

    private BrandInfo brand;

    private CategoryInfo category;

    private String goodsname;

    private String goodsimage;

    private Float goodsprice;

    private Integer goodsnum;

    private Integer issale;

    private Date saletime;

    private Integer isrecommend;

    private Integer isnew;

    private Integer ishot;

    private Integer salesnum;

    private String goodsremark;

    private static final long serialVersionUID = 1L;

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public BrandInfo getBrand() {
        return brand;
    }

    public void setBrand(BrandInfo brand) {
        this.brand = brand;
    }

    public CategoryInfo getCategory() {
        return category;
    }

    public void setCategory(CategoryInfo category) {
        this.category = category;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname == null ? null : goodsname.trim();
    }

    public String getGoodsimage() {
        return goodsimage;
    }

    public void setGoodsimage(String goodsimage) {
        this.goodsimage = goodsimage == null ? null : goodsimage.trim();
    }

    public Float getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(Float goodsprice) {
        this.goodsprice = goodsprice;
    }

    public Integer getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(Integer goodsnum) {
        this.goodsnum = goodsnum;
    }

    public Integer getIssale() {
        return issale;
    }

    public void setIssale(Integer issale) {
        this.issale = issale;
    }

    public Date getSaletime() {
        return saletime;
    }

    public void setSaletime(Date saletime) {
        this.saletime = saletime;
    }

    public Integer getIsrecommend() {
        return isrecommend;
    }

    public void setIsrecommend(Integer isrecommend) {
        this.isrecommend = isrecommend;
    }

    public Integer getIsnew() {
        return isnew;
    }

    public void setIsnew(Integer isnew) {
        this.isnew = isnew;
    }

    public Integer getIshot() {
        return ishot;
    }

    public void setIshot(Integer ishot) {
        this.ishot = ishot;
    }

    public Integer getSalesnum() {
        return salesnum;
    }

    public void setSalesnum(Integer salesnum) {
        this.salesnum = salesnum;
    }

    public String getGoodsremark() {
        return goodsremark;
    }

    public void setGoodsremark(String goodsremark) {
        this.goodsremark = goodsremark == null ? null : goodsremark.trim();
    }

    public GoodsInfo() {
    }

    public GoodsInfo(Integer goodsid, BrandInfo brand, CategoryInfo category, String goodsname, String goodsimage, Float goodsprice, Integer goodsnum, Integer issale, Date saletime, Integer isrecommend, Integer isnew, Integer ishot, Integer salesnum, String goodsremark) {
        this.goodsid = goodsid;
        this.brand = brand;
        this.category = category;
        this.goodsname = goodsname;
        this.goodsimage = goodsimage;
        this.goodsprice = goodsprice;
        this.goodsnum = goodsnum;
        this.issale = issale;
        this.saletime = saletime;
        this.isrecommend = isrecommend;
        this.isnew = isnew;
        this.ishot = ishot;
        this.salesnum = salesnum;
        this.goodsremark = goodsremark;
    }

    @Override
    public String toString() {
        return "GoodsInfo{" +
                "goodsid=" + goodsid +
                ", brand=" + brand +
                ", category=" + category +
                ", goodsname='" + goodsname + '\'' +
                ", goodsimage='" + goodsimage + '\'' +
                ", goodsprice=" + goodsprice +
                ", goodsnum=" + goodsnum +
                ", issale=" + issale +
                ", saletime=" + saletime +
                ", isrecommend=" + isrecommend +
                ", isnew=" + isnew +
                ", ishot=" + ishot +
                ", salesnum=" + salesnum +
                ", goodsremark='" + goodsremark + '\'' +
                '}';
    }
}